﻿using Microsoft.AspNetCore.SignalR;

namespace HR.Hubs
{
    public class InfoHub : Hub
    {
        /// <summary>
        /// 发送信息
        /// </summary>
        /// <param name="user"></param>
        /// <param name="message"></param>
        /// <returns></returns>
        public async Task SendMessage(string user,string message)
        {
            await Clients.All.SendAsync("CheckInfo",user,message);
        }
    }
}
